package com.dd.common.dto.system.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @author cheng
 */
@Schema(description = "字典数据查询DTO")
@Data
public class SysDictDataQueryDTO implements java.io.Serializable {
    @Schema(description = "字典标签，如：男、女、正常", example = "男")
    private String dictLabel;

    @Schema(description = "是否默认值：1-是，0-否", example = "1")
    @Range(min = 0, max = 1, message = "状态值只能是0或1")
    private Integer isDefault;

    @Schema(description = "状态：1-启用，0-禁用", example = "1")
    @Range(min = 0, max = 1, message = "状态值只能是0或1")
    private Integer enabled;
}
